package com.sali.utils.loadbalance;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @description:
 * @author: zhang hang
 * @date: 2022/7/18 20:15.
 * @version: 1.0
 */
public interface ILoadBalanceAlgorithm {

    /**
     * description: 实现三种负载均衡算法
     *
     * @param instances 注册列表中的服务实例
     * @return:
     * @author: zhang hang
     * @date:
     **/
    ServiceInstance algorithmDetail(List<ServiceInstance> instances);

}
